package com.bugbuff.dubbo.server.controller;

import com.bugbuff.common.pojo.PageResult;
import com.bugbuff.dubbo.server.service.VideoInfoService;
import com.bugbuff.dubbo.server.service.VideoService;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("management/manage")
@Slf4j
public class VideoInfoController {
@Autowired
private VideoInfoService videoInfoService;

    @GetMapping("videos")
    public PageResult queryVideoList(Integer pagesize, Integer page, String sortProp , String sortOrder, Long uid){
        return this.videoInfoService.queryVideoList(pagesize, page, sortProp, sortOrder, uid);
    }
}
